package ar.com.huddleton.arquitectura;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CalendarView;
import android.widget.CalendarView.OnDateChangeListener;

public class CalendarioFragmento extends Fragment {

	private CalendarView calendario = null;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

		View vista = inflater.inflate(R.layout.calendario_fragmento,container, false);
		calendario = (CalendarView) vista.findViewById(R.id.calendarCFDS);
		calendario.setOnDateChangeListener(calendarChangeDateListener);
	    return vista;
	  }
	
	
	private OnDateChangeListener calendarChangeDateListener = new OnDateChangeListener() {
		public void onSelectedDayChange(CalendarView view, int year, int month,
				int dayOfMonth) {
		// TODO: Hacer algo cuando el dia seleccionado cambie	
		}
	};
	
}
